home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-01 | 2.3 KB | 80 lines | [TEXT/MPS ] |
- /*
- File: CalendarEngine.idl
-
- Contains: IDL interface for the CalendarEngine class
-
- Version: Technology: System 8.0
- Release: Universal Interfaces 3.0d3 on Copland DR1
-
- Copyright: © 1995-1996 by Apple Computer, Inc. All rights reserved.
-
- Bugs?: If you find a problem with this file, send the file and version
- information (from above) and the problem description to:
-
- Internet: apple.bugs@applelink.apple.com
- AppleLink: APPLE.BUGS
- */
-
-
- #ifndef __CALENDARENGINE__
- #define __CALENDARENGINE__
-
- #include <somobj.idl>
- #include <somcls.idl>
- #include <CalendarDate.idl>
- #include <TextObjects.idl>
- #include <TimeObjects.idl>
- #include <Types.idl>
-
-
- interface TCalendarEngine : SOMObject
- {
-
- attribute LocaleObjectRef fCalendarObjectRef;
- attribute UInt32 fCalendarID;
- attribute UInt32 fDivisionCount;
-
- void SetCalendarObjectRef(in LocaleObjectRef localeObjectRef);
- OSStatus GetCalendarIdentifier(in UInt32 *id);
- OSStatus GetCalendarDivisionCount(in UInt32 *count);
- OSStatus GetCalendarFieldCount(in UInt32 theDivision,in UInt32 *count);
- OSStatus GetCalendarDivisionName(in UInt32 theDivsion,in TextObject name);
- OSStatus GetCalendarFieldName(in UInt32 division, in UInt32 field, in TextObject name);
- OSStatus ConvertCalendarDateToTimeObject(in TCalendarDate *calendarDate,in TimeObject result);
- OSStatus ConvertTimeObjectToCalendarDate(in ConstTimeObjectPtr timeObj,in TCalendarDate *result);
- OSStatus AddCalendarDateToTimeObject(in ConstTimeObjectPtr source,in TCalendarDate *delta, in TimeObjectPtr result);
- OSStatus SubtractCalendarDateFromTimeObject(in ConstTimeObjectPtr source, in TCalendarDate *delta, in TimeObjectPtr result);
-
-
- #ifdef __SOMIDL__
- implementation
- {
- passthru C_h_before = "#include <TimeObjects.h>";
- releaseorder: _get_fCalendarObjectRef,
- _set_fCalendarObjectRef,
- _get_fCalendarID,
- _set_fCalendarID,
- _get_fDivisionCount,
- _set_fDivisionCount,
- SetCalendarObjectRef,
- GetCalendarIdentifier,
- GetCalendarDivisionCount,
- GetCalendarFieldCount,
- GetCalendarDivisionName,
- GetCalendarFieldName,
- ConvertCalendarDateToTimeObject,
- ConvertTimeObjectToCalendarDate,
- AddCalendarDateToTimeObject,
- SubtractCalendarDateFromTimeObject;
- somInit: override;
- majorversion = 1;
- minorversion = 1;
-
- };
- #endif
-
- };
-
- #endif
-
-